/* $Id: JPaintPane.java 63 2010-02-14 13:52:34Z aaron.day $ */
package org.crazydays.gameplan.view.paint;


import javax.swing.JPanel;
import javax.swing.JSplitPane;

/**
 * JPaintPane
 */
public class JPaintPane
    extends JSplitPane
{
    /** serial version uid */
    public final static long serialVersionUID =
        "$Id: JPaintPane.java 63 2010-02-14 13:52:34Z aaron.day $".hashCode();

    /** resource key: name */
    public final static String RESKEY_NAME = "PaintPane.name";

    /** resource key: icon */
    public final static String RESKEY_ICON = "PaintPane.icon";

    /** paint controls */
    protected JControlsPanel controlsPanel;

    /** control settings panel */
    protected JPanel controlSettingsPanel;

    /**
     * JPaintPane constructor.
     */
    public JPaintPane()
    {
        super(JSplitPane.VERTICAL_SPLIT, true);
    }

    /**
     * Set controls panel.
     * 
     * @param controlsPanel JControlsPanel
     */
    public void setControlsPanel(JControlsPanel controlsPanel)
    {
        this.controlsPanel = controlsPanel;
    }

    /**
     * Initialize.
     */
    public void initialize()
    {
        setDividerLocation(100);
        setLeftComponent(controlsPanel);
        initializeControlSettingsPanel();
    }

    /**
     * Initialize control settings panel.
     */
    public void initializeControlSettingsPanel()
    {
        controlSettingsPanel = new JPanel();
        setRightComponent(controlSettingsPanel);
    }
}
